<br>
<div class="blog-page blog-content-2">
    <div class="row">
        <div class="col-lg-9">
            <div class="blog-single-content bordered blog-container">
                <div class="blog-single-head">
                    <h1 class="blog-single-head-title"><?= $info['name'] ?></h1>
                    <div class="blog-single-head-date">
                        <i class="icon-calendar font-blue"></i>
                        <a href="javascript:;"><?= $info['record_date'] ?></a>
                    </div>
                </div>
                <div class="blog-single-img">
                    <img src="<?= $info['detail_img_url'] ?>" style="width: 30%;" onerror="javascript:this.src='http://7xq2xl.com1.z0.glb.clouddn.com/film/film_default.jpg'">
                </div>
                <div class="blog-single-desc">
                    <?= $info['describe'] ?>
                </div>
            </div>
            <div class="blog-single-content bordered blog-container">
                <div class="blog-single-head">
                    <h1 class="blog-single-head-title">下载地址</h1>
                </div>
                <div class="blog-single-foot">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th width="5%"> #</th>
                            <th width="35%"> 下载地址</th>
                            <th width="30%"> 下载磁力</th>
                            <th width="30%"> 操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php $i = 1;
                        foreach ($downloadList as $download): ?>
                            <tr>
                                <td> <?= $i ?> </td>
                                <td> <input type="text" class="form-control" value="<?= $download['download_url'] ?>"> </td>
                                <td><input type="text" class="form-control" value="<?= $download['download_code'] ?>">
                                </td>
                                <td>
                                    <a href="<?= $download['download_code'] ?>" class="btn btn-primary btn-sm"> 迅雷下载 </a>
                                    <button type="button" data-clipboard-text="<?= $download['download_code'] ?>" class="btn btn-sm btn-primary btn-copy">点我复制
                                    </button>
                                </td>
                            </tr>
                            <?php $i++; endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="col-lg-3">
            <div class="blog-single-sidebar bordered blog-container">
                <div class="blog-single-sidebar-tags">
                    <h3 class="blog-sidebar-title uppercase">标签</h3>
                    <ul class="blog-post-tags">
                        <li class="uppercase">
                            <a href="javascript:;"><?= $cateName ?></a>
                        </li>
                        <li>
                            <a href="javascript:;"><?= $info['name'] ?></a>
                        </li>
                        <li class="uppercase">
                            <a href="javascript:;">迅雷下载</a>
                        </li>
                        <li class="uppercase">
                            <a href="javascript:;">迅雷看看</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        var clipboard = new Clipboard('.btn-copy');
        clipboard.on('success', function(e) {
            alert('赋值成功');
            e.clearSelection();
        });
        clipboard.on('error', function(e) {
            alert('复制失败');
        });
    })
</script>